package com.app.vo;

import com.app.model.AreaModel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AreaVo {
    private String province;
    private String provinceId;
    private String city;
    private String cityId;
    private String area;
    private String areaId;

    private String code;

    private String name;
    private List<AreaVo> children;

    @TableField(exist = false)
    private String value;
    @TableField(exist = false)
    private String label;
}
